package com.neusoft.neuiotms.dcam.workflow.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.workflow.model.LingyongKJ;

public interface LingyongKJRepository extends JpaRepository<LingyongKJ, Long> {

    LingyongKJ findByTaskId(String taskId);

    LingyongKJ findByWorkOrderNumAndTaskId(String workOrderNum, String taskId);

    List<LingyongKJ> findByWorkOrderNum(String workOrderNum);

    List<LingyongKJ> findAllByWorkOrderNumOrderByCreateTimeDesc(String workOrderNum);

    LingyongKJ findTopByWorkOrderNumOrderByCreateTimeDesc(String workOrderNum);
}
